import Vue from 'vue'
import VueRouter from 'vue-router'

import Sing from '@/views/Sing'
import Kpop from '@/views/Kpop'
import Iu from '@/views/Sing/Iu'
import Lisa from '@/views/Kpop/Lisa'
import Songyuqi from '@/views/Kpop/Songyuqi'
import Rose from '@/views/Kpop/Rose'


Vue.use(VueRouter)

const routes = [
  {
    path : '/',
    redirect: '/sing'
  },
  {
    path : '/sing',
    component : Sing,
    children : [
      {
        path : 'iu',
        component : Iu
      }
    ]
  },
  {
    path : '/kpop',
    component : Kpop,
    children : [
      {
        path : 'lisa',
        component : Lisa,
        name : 'li'
      },
      {
        path : 'songyuqi',
        component : Songyuqi
      },
      {
        path : 'rose',
        component : Rose,
        name : 'pop',
      }
    ]
  }

]

const router = new VueRouter({
  routes
})

export default router
